#ifndef UDPDATASENDER_H
#define UDPDATASENDER_H

#define DEFAULT_HOST 10244

#include <QUdpSocket>
#include <QObject>
#include <QHostAddress>
#include <QVideoFrame>
#include <QImage>

class UdpDataSender : public QUdpSocket
{
        Q_OBJECT
    public:
        UdpDataSender();
        void setReceiver( const QHostAddress &target , int port = DEFAULT_HOST ) ;

   public slots :
        void ready() ;
        void nonready() ;

   public :
        QHostAddress receiverAddressForIpv4 ;
        int receiverPort ;
        bool sendeReady ;

    public slots :
        void sendVideoFrame(QVideoFrame frame) ;
};

#endif // UDPDATASENDER_H
